<?php
namespace frontend\controllers;

use Yii;
use yii\web\Controller;
use common\models\YmhSeo;
use common\models\Product;


class ContactController extends Controller
{
    public function actionContact(){
        $seo=YmhSeo::findOne(5);
        $view = Yii::$app->view;
        $view->params['layout_data']['menu'] = 'contact';
        $view->params['layout_data']['seo'] = $seo;
        $pro_list = Product::getProCat();
        $view->params['layout_data']['pro_list'] = $pro_list;
        return $this->render("contact");
    }
    
    public function actionMContact(){
        $this->layout = 'main_local';
        $seo=YmhSeo::findOne(5);
        $view = Yii::$app->view;
        $view->params['layout_data']['menu'] = 'contact';
        $view->params['layout_data']['seo'] = $seo;
        $pro_list = Product::getProCat();
        $view->params['layout_data']['pro_list'] = $pro_list;
        return $this->render("m-contact");
    }
}